package com.demo.test;

import com.demo.bean.applicationContextConfig;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * Created by win10 on 2020/2/8 13:33
 */
public class BeanConfig {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext actx = new AnnotationConfigApplicationContext(applicationContextConfig.class);
        System.out.println(actx.getBean("message"));
    }
}
